package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface SupplierDao {
    List<Supplier> selectSupplierList(@Param("offSet") Integer offSet,
                                      @Param("pageRow") Integer pageRow,
                                      @Param("supplierName") String supplierName);


    //保存
    void saveSupplier(Supplier supplier);

    //更新
    void updateSupplier(@Param("supplier") Supplier supplier,
                        @Param("supplierId") String supplierId);

    //支持批量删除
    void deleteSupplier(int id);


    List<Supplier> getComboboxList(@Param("q") String q);
}
